home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / cpcug.zip / DISKSCAN.DOC < prev    next >
Text File  |  1987-04-20  |  5KB  |  126 lines

  1.           DISKSCAN                               Charles Petzold
  2.           Command
  3.           Copyright (c) 1986, Ziff-Davis Publishing Co.
  4.           ______________________________________________________
  5.  
  6.           Purpose:  Locates and identifies disk errors on hard
  7.                     and floppy disks, Bernoulli Boxes or other
  8.                     similar storage devices.
  9.  
  10.           Format:   DISKSCAN [d:]
  11.  
  12.           Remarks:  The DOS "Abort, Retry, Ignore?" and the
  13.                     CHKDSK "x lost clusters found" messages tend
  14.                     to appear after it is too late to save
  15.                     possibly valuable data.  Regular use of
  16.                     DISKSCAN will show when a hard disk is
  17.                     beginning to go bad--for example, when a
  18.                     specific sector or two in an as-yet
  19.                     unallocated cluster has become unusable since
  20.                     the disk was formatted.  (DOS marks and does
  21.                     not use bad clusters it finds while
  22.                     formatting.  DISKSCAN reports these "Flagged
  23.                     as bad.")
  24.  
  25.                     DISKSCAN error messages include:
  26.  
  27.                     CRC Error: Data checksum as recalculated
  28.                          during read does not agree with checksum
  29.                          stored on disk when written.
  30.                     Sector Not Found: Sector boundary created
  31.                          during formatting is no longer readable.
  32.                     File Alloc. Table and Can't Read FAT: Very
  33.                          serious error:  Back up what you can
  34.                          with COPY and reformat disk before
  35.                          trying to put files back on it.
  36.                     Boot Sector:  If this sector of a hard disk
  37.                          goes bad, put a DOS disk in drive A: and
  38.                          issue SYS C: command.  Then COPY
  39.                          COMMAND.COM C:.  This will put a fresh
  40.                          copy of the system files on drive C:.
  41.                          If this does not work, boot up again
  42.                          from the external DOS floppy disk, back
  43.                          up all hard disk files, and reformat the
  44.                          hard disk.
  45.                     Root Directory:  Errors here could keep you
  46.                          from later being able to load a file or
  47.                          save updates to it.  CHKDSK will
  48.                          probably indicate unallocated cluster
  49.                          chains or cross-linked files, and you
  50.                          may have to use CHKDSK/F to save what
  51.                          you can.
  52.                     Unallocated:  As yet, not serious, as the bad
  53.                          sector is not being used.  When it is,
  54.                          though, and you try to save a file with
  55.                          this sector, you'll get an "Abort,
  56.                          Retry, Ignore" message.  Select "Ignore"
  57.                          to save what you can, then REName the
  58.  
  59.  
  60.  
  61.  
  62.                                  Page -1-
  63.                          file and save again under the new name.
  64.                          Use RECOVER filename with the original
  65.                          file; this will cause DOS to flag its
  66.                          cluster(s) as bad.  (DISKSCAN does not
  67.                          enter the bad cluster numbers in the
  68.                          File Allocation Table; FORMAT and
  69.                          RECOVER do.)  Then delete the original
  70.                          (RECOVERed) filename and check the
  71.                          second version you saved (under the new
  72.                          name) to see how much (if any) of it is
  73.                          usable.
  74.                     Used by file: While DISKSCAN reports the bad
  75.                          sector number, it does not do a cross-
  76.                          check to see which of your files is
  77.                          using that sector.  You may be able to
  78.                          identify this by issuing the command
  79.  
  80.                               SWEEP COPY *.* NUL
  81.  
  82.                          When COPY encounters the file with the
  83.                          bad sector it will report "Abort, Retry,
  84.                          Ignore."  Note the bad file and press
  85.                          "I" to continue.
  86.                     Read Fault and General Failure:  The sectors
  87.                          so designated are bad, but the errors
  88.                          reported don't fall into any of the
  89.                          above categories.
  90.  
  91.                     Notes:
  92.  
  93.                     1.   Requires DOS 2.0 or higher.
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.                                  Page -2-
  126.